<template>
  <el-dialog
    title="下钻图表配置"
    v-if="visible"
    :visible.sync="visible"
    width="1500px"
    :close-on-click-modal="false"
    @close="drillDownDialogClose"
  >

    <div>
    
      <div class="drill-board">
        <drill-down-chart :dragchartdata="drillDownDialogData"></drill-down-chart>
      </div>
      <drill-down-right-panel :activeData="drillDownDialogData" />
    </div>

    <span slot="footer" class="dialog-footer">
      <el-button @click="drillDownDialogClose">取 消</el-button>
      <el-button type="primary" @click="drillDownDialogClose">确 定</el-button>
    </span>
  </el-dialog>
</template>

<script>
import DrillDownChart from './drillDownChart.vue';
import DrillDownRightPanel from './drillDownRightPanel.vue';
export default {
  name: "drillDownDialog",
  components: {DrillDownRightPanel, DrillDownChart},
  props: {
    drillDownDialogFlag: {
      default: false,
    },
    drillDownDialogData: {
      type: Object
    },
  },
  data() {
    return {
      visible: false,
    };
  },
  created() {},
  mounted() {},
  methods: {
    drillDownDialogClose() {
      this.$emit("update:drillDownDialogFlag", false);
    },
  },
  watch: {
    drillDownDialogFlag() {
      this.visible = this.drillDownDialogFlag;
    },
  },
};
</script>

<style lang="scss" scoped>

.drill-board {
  width: 1000px;
  height: 600px;
  margin-left: 15px;
  border: 1px solid #409eff;
  background-color: #2c3437;
}

</style>